package com.bo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.bo.bean.UserInformation;
import com.bo.service.UserService;

@Controller
@RequestMapping("user")
public class UserController {
    @Autowired
    UserService userService;
	
    @RequestMapping("getUser/{userid}")
    @ResponseBody
    public UserInformation GetUser(@PathVariable String userid){
        return userService.select(userid);
    }
    @RequestMapping("getUser1/{userid}")
    @ResponseBody
    public UserInformation GetUser1(@PathVariable String userid){
        return userService.select1(userid);
    }

}
